package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账单对象 bills
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class Bills extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账单ID */
    private Long billId;

    /** 房屋ID，关联到房屋表 */
    @Excel(name = "房屋ID，关联到房屋表")
    private Long houseId;

    /** 费用类型ID，关联到费用类型表 */
    @Excel(name = "费用类型ID，关联到费用类型表")
    private Long feeTypeId;

    /** 账单金额 */
    @Excel(name = "账单金额")
    private BigDecimal amount;

    /** 账单周期开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单周期开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date billingPeriodStart;

    /** 账单周期结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单周期结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date billingPeriodEnd;

    /** 账单到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 账单状态 */
    @Excel(name = "账单状态")
    private String status;

    /** 账单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setFeeTypeId(Long feeTypeId) 
    {
        this.feeTypeId = feeTypeId;
    }

    public Long getFeeTypeId() 
    {
        return feeTypeId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setBillingPeriodStart(Date billingPeriodStart) 
    {
        this.billingPeriodStart = billingPeriodStart;
    }

    public Date getBillingPeriodStart() 
    {
        return billingPeriodStart;
    }
    public void setBillingPeriodEnd(Date billingPeriodEnd) 
    {
        this.billingPeriodEnd = billingPeriodEnd;
    }

    public Date getBillingPeriodEnd() 
    {
        return billingPeriodEnd;
    }
    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("billId", getBillId())
            .append("houseId", getHouseId())
            .append("feeTypeId", getFeeTypeId())
            .append("amount", getAmount())
            .append("billingPeriodStart", getBillingPeriodStart())
            .append("billingPeriodEnd", getBillingPeriodEnd())
            .append("dueDate", getDueDate())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
